class PlatWalletFlowModel {
  List<PlatWalletFlowItemModel>? list;
  int? pageNum;
  int? pageSize;
  int? total;
  int? totalPage;

  PlatWalletFlowModel({
    this.list,
    this.pageNum,
    this.pageSize,
    this.total,
    this.totalPage,
  });

  PlatWalletFlowModel.fromJson(Map<String, dynamic> json) {
    list =
        json["list"] == null
            ? null
            : (json["list"] as List)
                .map((e) => PlatWalletFlowItemModel.fromJson(e))
                .toList();
    pageNum = json["pageNum"];
    pageSize = json["pageSize"];
    total = json["total"];
    totalPage = json["totalPage"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    if (list != null) {
      _data["list"] = list?.map((e) => e.toJson()).toList();
    }
    _data["pageNum"] = pageNum;
    _data["pageSize"] = pageSize;
    _data["total"] = total;
    _data["totalPage"] = totalPage;
    return _data;
  }
}

class PlatWalletFlowItemModel {
  double? amount;
  String? createTime;
  String? flowDesc;
  String? type;

  PlatWalletFlowItemModel({
    this.amount,
    this.createTime,
    this.flowDesc,
    this.type,
  });

  PlatWalletFlowItemModel.fromJson(Map<String, dynamic> json) {
    amount = json["amount"];
    createTime = json["createTime"];
    flowDesc = json["flowDesc"];
    type = json["type"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["amount"] = amount;
    _data["createTime"] = createTime;
    _data["flowDesc"] = flowDesc;
    _data["type"] = type;
    return _data;
  }
}
